﻿using System.Collections.Generic;
using DAO;
using DTO;

namespace BUS
{
    public class TreatasBUS
    {
        public static List<TreatasDTO> getAll()
        {
            return TreatasDAO.getAll();
        }

        public static TreatasDTO getAlongCode(int maTreatas)
        {
            return TreatasDAO.getAlongCode(maTreatas);
        }

        public static void Insert(TreatasDTO _insert)
        {
            TreatasDAO.Insert(_insert);
        }

        public static void Delete(int maTreatas)
        {
            TreatasDAO.Delete(maTreatas);
        }

        public static void Update(TreatasDTO dto)
        {
            TreatasDAO.Update(dto);
        }
    }
}
